

import request from '@/utils/request'

const hostelBaseUrl = process.env.VUE_APP_CONTENXT_PATH + "/hostel";

export function findHostelInfoByCondition(query) {
    return request({
        url: hostelBaseUrl + '/listByCondition',
        method: 'get',
        params: query
    })
}

export function findHostelInfo(query) {
    return request({
        url: hostelBaseUrl + '/findHostelInfo',
        method: 'get',
        params: query
    })
}



export function submitHostelInfoEdit(data) {
    return request({
        url: hostelBaseUrl + '/submitHostelInfoEdit',
        method: 'post',
        data: data
    })
}

// export function submitaddLeave(data) {
//     return request({
//         url: leaveInfoBaseUrl + '/submitaddLeave',
//         method: 'post',
//         data: data
//     })
// }


